package cn.java.image;

public class Triangle extends Image {
	public double a, b, c;

	public double getGirth() {

		return a + b + c;
	}

	public double getArea() {
		double p = getGirth() / 2;
		return Math.sqrt(p * (p - a) * (p - b) * (p - c));
	}

}
